package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName material_plan
 */
@TableName(value ="material_plan")
public class MaterialPlan implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Object id;

    /**
     * 
     */
    private String plannumber;

    /**
     * 
     */
    private String identifycode;

    /**
     * 
     */
    private String materialinfo;

    /**
     * 
     */
    private String isreceive;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Object getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Object id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getPlannumber() {
        return plannumber;
    }

    /**
     * 
     */
    public void setPlannumber(String plannumber) {
        this.plannumber = plannumber;
    }

    /**
     * 
     */
    public String getIdentifycode() {
        return identifycode;
    }

    /**
     * 
     */
    public void setIdentifycode(String identifycode) {
        this.identifycode = identifycode;
    }

    /**
     * 
     */
    public String getMaterialinfo() {
        return materialinfo;
    }

    /**
     * 
     */
    public void setMaterialinfo(String materialinfo) {
        this.materialinfo = materialinfo;
    }

    /**
     * 
     */
    public String getIsreceive() {
        return isreceive;
    }

    /**
     * 
     */
    public void setIsreceive(String isreceive) {
        this.isreceive = isreceive;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MaterialPlan other = (MaterialPlan) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPlannumber() == null ? other.getPlannumber() == null : this.getPlannumber().equals(other.getPlannumber()))
            && (this.getIdentifycode() == null ? other.getIdentifycode() == null : this.getIdentifycode().equals(other.getIdentifycode()))
            && (this.getMaterialinfo() == null ? other.getMaterialinfo() == null : this.getMaterialinfo().equals(other.getMaterialinfo()))
            && (this.getIsreceive() == null ? other.getIsreceive() == null : this.getIsreceive().equals(other.getIsreceive()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPlannumber() == null) ? 0 : getPlannumber().hashCode());
        result = prime * result + ((getIdentifycode() == null) ? 0 : getIdentifycode().hashCode());
        result = prime * result + ((getMaterialinfo() == null) ? 0 : getMaterialinfo().hashCode());
        result = prime * result + ((getIsreceive() == null) ? 0 : getIsreceive().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", plannumber=").append(plannumber);
        sb.append(", identifycode=").append(identifycode);
        sb.append(", materialinfo=").append(materialinfo);
        sb.append(", isreceive=").append(isreceive);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}